<extend name="../Public/model" />
<block name="title">编辑{$TITLE}</block>
<block name="body">
    <form class="form form-horizontal form-validate" id="form-ajax-Form" method="post">
        <input type="hidden" name="nav_id" value="{$detail.nav_id}" />
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">菜单分类：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <span class="select-box wp30">
                    <select class="select" name="cate_id">
                        <volist name="navCates" id="info">
                            <option value="{$info.cate_id}" <eq name="info.cate_id" value="$detail[cate_id]">selected="selected"</eq>>{$info.cate_name}</option>
                        </volist>
                    </select>
                </span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">上级菜单：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <span class="select-box wp30">
                    <select class="select" name="parent_id">
                        <option value="0">顶级菜单</option>
                        <volist name="navs" id="info">
                            <option value="{$info.nav_id}" <eq name="info.nav_id" value="$detail[parent_id]">selected="selected"</eq>>{$info.nav_name}</option>
                        </volist>
                    </select>
                </span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>菜单名称：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" value="{$detail.nav_name}" name="nav_name" datatype="*" nullmsg="菜单名称不能为空">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>链接：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" value="{$detail.href}" name="href" datatype="*" nullmsg="链接名称不能为空">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>打开方式：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <span class="select-box wp30">
                    <select class="select" name="target">
                        <option value="" <if condition="$detail.status eq ''">selected</if>>默认</option>
                        <option value="_blank" <if condition="$detail.status eq '_blank'">selected</if>>新窗口打开</option>
                    </select>
                </span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>排序：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" value="{$detail.sort}" datatype="*1-3" nullmsg="排序不能为空" name="sort">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>状态：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <span class="select-box wp30">
                    <select name="status" class="select">
                        <option value="1" <if condition="$detail.status eq 1">selected</if>>显示</option>
                        <option value="0" <if condition="$detail.status eq 0">selected</if>>隐藏</option>
                    </select>
				</span>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</block>